package com.wcx.application.domian;

public class ChatList {

    //列表id（自增）
    private int listId;


    //发送者
    private String fromUser;

    //接收者
    private String toUser;

    //发送者是否在窗口
    private int fromWindow;

    //接收者是否在窗口
    private int toWindow;

    //未读数 fromUser的未读数
    private int unread;

    //是否被删除
    private Boolean status;

    public ChatList(String fromUser, String toUser, int fromWindow, int toWindow, int unread) {
        this.fromUser = fromUser;
        this.toUser = toUser;
        this.fromWindow = fromWindow;
        this.toWindow = toWindow;
        this.unread = unread;
    }

    public int getListId() {
        return listId;
    }

    public void setListId(int listId) {
        this.listId = listId;
    }


    public String getFromUser() {
        return fromUser;
    }

    public void setFromUser(String fromUser) {
        this.fromUser = fromUser;
    }

    public String getToUser() {
        return toUser;
    }

    public void setToUser(String toUser) {
        this.toUser = toUser;
    }


    public int getFromWindow() {
        return fromWindow;
    }

    public void setFromWindow(int fromWindow) {
        this.fromWindow = fromWindow;
    }

    public int getToWindow() {
        return toWindow;
    }

    public void setToWindow(int toWindow) {
        this.toWindow = toWindow;
    }

    public int getUnread() {
        return unread;
    }

    public void setUnread(int unread) {
        this.unread = unread;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return
                "{" +
                        "\"listId\":\"" + listId + '\"' +
                        ", \"fromUser\":\"" + fromUser + '\"' +
                        ", \"toUser\":\"" + toUser + '\"' +
                        ", \"fromWindow\":\"" + fromWindow + '\"' +
                        ", \"toWindow\":\"" + toWindow + '\"' +
                        ", \"unread\":\"" + unread + '\"' +
                        ", \"status\":\"" + status + '\"' +
                        '}';
    }
}